home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 January / EnigmA AMIGA RUN 33 (1999)(G.R. Edizioni)(IT)[!][issue 1999-01].iso / earcd / apus / install / readme.ins < prev    next >
Text File  |  1999-01-01  |  3KB  |  55 lines

  1. This file describes the layout of files for setting up and running the
  2. Red Hat installer.  It does not describe the full generality of
  3. possible layouts; it describes primarily the layout used with the
  4. installer on powermacs.
  5.  
  6. When the installer runs, it needs to find a directory called "RedHat"
  7. with subdirectories called "RPMS" and "base".  It can access these
  8. directories and files on a local hard disk or CDROM or via FTP or
  9. NFS.  The RPMS directory contains RPM files for all the packages which
  10. can be installed.  The base directory contains 4 files:
  11.  
  12. * skeleton.cgz - a gzipped cpio file, containing stuff which is
  13.   installed by gunzip/cpio before most of the RPMs are installed.
  14. * comps - the "components" file, which describes groups of RPMs.
  15. * hdlist - a list of the RPM headers, generated by `genhdlist'
  16.   program.
  17. * uglist - another file generated by genhdlist.
  18.  
  19. The comps file is used to structure the list of RPMs into groups that
  20. the user can selectively install or not.  The comps file is structured
  21. as a list of groups, each of which starts with a header line, has one
  22. package name per line after that, and ends with a blank line.  The
  23. header line has a "0" or "1" followed by a space and the name of the
  24. group.  "1" means that the group is to be installed without asking the
  25. user, "0" means to ask.  The special group *beforeskel* gets installed
  26. before skeleton.cgz gets unpacked; all other RPMs in selected groups
  27. get installed in alphabetical order after skeleton.cgz is unpacked.
  28.  
  29. The install process on powermacs (those that can run the native
  30. kernel) starts by getting Open Firmware to boot an XCOFF image from
  31. floppy or ethernet.  This image contains .text, .data and .bss
  32. sections for a small second-stage loader, a section called "image"
  33. containing a gzipped kernel image, and a section called "initrd"
  34. containing an initialized ramdisk.
  35.  
  36. The second-stage loader finds these sections in memory and copies the
  37. initrd section up to the end of the first 8MB of memory, out of the
  38. way.  Then it decompresses the kernel image and jumps to it, passing
  39. it the address where it put the initrd section and its size as
  40. parameters.  These parameters are used to set the kernel variables
  41. initrd_start and initrd_end.
  42.  
  43. The kernel starts, decompresses the initial ramdisk into a standard
  44. ramdisk, and uses it as the root device.  This ramdisk has a special
  45. /sbin/init which sets up a few things and then runs install.  The
  46. install program is broken into two pieces, install and install2, for
  47. the sake of the ix86 installer, which can only fit install on the boot
  48. floppy.  I put the two back into one executable which can be invoked
  49. as either install or install2.  Install puts up the first 4 screens or
  50. so and then invokes install2.
  51.  
  52. I use a 3MB ramdisk with about 2MB used.  This, together with a
  53. compressed vmlinux kernel image and the second-stage loader, comes to
  54. just under 1.4MB, and so just fits onto a Mac-format floppy.
  55.